﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Mail.aspx.cs" Inherits="Reconciliation.Web.Mail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Send Mail</title>
    <link href="css/main_style.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #FFFFFF;">
    <form id="form1" runat="server">
    <div style="padding: 10px;">
        <table width="100%">
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblMsg" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Mail To:</b>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox runat="server" ID="txtMailTo" Width="500" MaxLength="100" />
                </td>
            </tr>
            <tr>
                <td height="18">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtMailTo" ValidationGroup="vGroup1"
                        ErrorMessage="<%$ Resources:Lang, ReqValidEmail%>" ToolTip="Email is required.!"
                        ID="EmailRequired" Display="Dynamic" />
                    <asp:RegularExpressionValidator runat="server" ControlToValidate="txtMailTo" ValidationGroup="vGroup1"
                        ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"
                        ErrorMessage="<%$ Resources:Lang, ReqValidEmail2%>" ToolTip="A valid email is required."
                        ID="EmailRequiredFormat" Display="dynamic" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Mail Cc:</b>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox runat="server" ID="txtMailCc" Width="500" MaxLength="100" />
                </td>
            </tr>
            <tr>
                <td height="18">
                    <asp:RegularExpressionValidator runat="server" ControlToValidate="txtMailCc" ValidationGroup="vGroup1"
                        ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"
                        ErrorMessage="<%$ Resources:Lang, ReqValidEmail2%>" ToolTip="A valid email is required."
                        ID="RegularExpressionValidator1" Display="dynamic" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Subject:</b>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox runat="server" ID="txtSubject" Width="550" />
                </td>
            </tr>
            <tr>
                <td height="18">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtSubject" ValidationGroup="vGroup1"
                        ErrorMessage="<%$ Resources:Lang, ReqSubject%>" ToolTip="subject required.!"
                        ID="RequiredFieldValidator2" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Attachement:</b>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DataList runat="server" ID="datalits">
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Label runat="server" Font-Bold="true" ID="lblFile" Text='<%# Container.DataItem %>' />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:FileUpload runat="server" ID="AttachFile" />&nbsp;<asp:Button runat="server"
                        ID="btnAttach" Text="Attach" OnClick="btnAttach_Click" />&nbsp;
                </td>
            </tr>
            <tr><td height="18">&nbsp;</td></tr>
            <tr>
                <td>
                    <b>Message:</b>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox TextMode="MultiLine" runat="server" ID="txtMessage" Height="100" Width="550" />
                </td>
            </tr>
            <tr>
                <td height="18">
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="txtMessage" ValidationGroup="vGroup1"
                        ErrorMessage="<%$ Resources:Lang, ReqMessage%>" ToolTip="message required.!"
                        ID="RequiredFieldValidator3" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button runat="server" ID="btnSendMail" Text="Send Mail" ValidationGroup="vGroup1"
                        OnClick="btnSendMail_Click" />&nbsp;<asp:Button runat="server" ID="btnClose" Text="Close"
                            OnClientClick="window.close(); return false;" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
